/*************************************************************************
 Copyright (C) Unpublished Unis Software, Inc. All rights reserved.
 Unis Software, Inc., Confidential and Proprietary.

 This software is subject to copyright protection
 under the laws of the Public of China and other countries.

 Unless otherwise explicitly stated, this software is provided
 by Unis "AS IS".
 *************************************************************************/
package com.unis.service.diary;

import java.util.List;

import com.unis.model.BaseModel;
import com.unis.model.diary.Diary;

/**
 * @author Administrator (email:357375084@qq.com)
 * @since 2013-02-25
 */
public interface DiaryService {

    /****************************************
     * Insert a instace of Diary
     ****************************************/
    void insert(Diary diary) throws Exception;

    /****************************************
     * Insert instaces of Diary
     ****************************************/
    void batchInsert(Diary diary) throws Exception;

    /****************************************
     * Delete a instace of Diary
     ****************************************/
    void delete(Diary diary) throws Exception;

    /****************************************
     * Delete instaces of Diary
     ****************************************/
    void batchDelete(Diary diary) throws Exception;

    /****************************************
     * Update a instace of Diary
     ****************************************/
    void update(Diary diary) throws Exception;

    /****************************************
     * Query instaces of Diary
     ****************************************/
    List<BaseModel> queryAsList(Diary diary) throws Exception;

    /****************************************
     * Query a instaces of Diary
     ****************************************/
    BaseModel queryAsObject(Diary diary) throws Exception;
}
